using BlogExample.Core.Domain;

namespace BlogExample.Core.Services
{
	public class InstructorDisplayStrategy : IDisplayStrategy
	{
		public bool Matches(DomainEntity entity)
		{
			return entity.GetType() == typeof (Instructor);
		}

		public string GetEntityDescription(DomainEntity entity)
		{
			return "Professor "  + ((Instructor) entity).Name;
		}
	}
}